Skip to content

Move descriptions, deprecation and title of generated "one of" to the property - #322

Merged
wparad merged 3 commits into
Authress-Engineering:release/2.4from
Xarno:rendererror-descriptions
Nov 9, 2026
Merged

wparad merged 3 commits into
Authress-Engineering:release/2.4from
Xarno:rendererror-descriptions

Conversation

@Xarno

@Xarno Xarno commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

If a property has type: ["something", null] or the like it is rendered as one Of. That rendering pushes the description and deprecation down to the individual elements.
It also copies constraints to elements which can not have them (require unique items in the screenshot).

This pull request leaves these 3 fields at the property level. And have the child items care for the rest.
If you need to only deprecate so elements of a one Of you need to write it explicitly in the spec. But that is unchanged here.

Additional note: In the explicit-one-of example image the integer field got no strike through even though it has deprecated set. That is a different bug, not handled here.

Broken

B-before

Fixed

B-after

Xarno and others added 3 commits November 9, 2026 14:43
…he property, show constraints only on the type option they apply to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	mocks/multi-type-variants-schema.json
@wparad
wparad merged commit 27f123e into Authress-Engineering:release/2.4 Nov 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants